package com.tbm.impl.controller;

import com.tbm.base.controller.BaseController;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * Created by Administrator on 2017/9/9.
 */
@Controller
@RequestMapping(value = "/api")
public class APIController extends BaseController {

    /**
     * Json数据维护
     * @return
     */
    @RequestMapping("/json-manage")
    public ModelAndView jsonManagement(){
        ModelAndView modelAndView = this.getModelAndView();
        modelAndView.setViewName("api/json-manage");
        return modelAndView;
    }

    /**
     * Json接口
     * @return
     */
    @RequestMapping("/json-index")
    public ModelAndView jsonIndex(){
        ModelAndView modelAndView = this.getModelAndView();
        modelAndView.setViewName("api/json-index");
        return modelAndView;
    }

}
